//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.live.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.math.BigDecimal;

public class LiveExamObjectiveScore implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    private Long id;
    private Long studentId;
    private Long examUserId;
    private Long examId;
    private BigDecimal score;
    private Integer state;

    public LiveExamObjectiveScore() {
    }

    public Long getId() {
        return this.id;
    }

    public Long getStudentId() {
        return this.studentId;
    }

    public Long getExamUserId() {
        return this.examUserId;
    }

    public Long getExamId() {
        return this.examId;
    }

    public BigDecimal getScore() {
        return this.score;
    }

    public Integer getState() {
        return this.state;
    }

    public LiveExamObjectiveScore setId(final Long id) {
        this.id = id;
        return this;
    }

    public LiveExamObjectiveScore setStudentId(final Long studentId) {
        this.studentId = studentId;
        return this;
    }

    public LiveExamObjectiveScore setExamUserId(final Long examUserId) {
        this.examUserId = examUserId;
        return this;
    }

    public LiveExamObjectiveScore setExamId(final Long examId) {
        this.examId = examId;
        return this;
    }

    public LiveExamObjectiveScore setScore(final BigDecimal score) {
        this.score = score;
        return this;
    }

    public LiveExamObjectiveScore setState(final Integer state) {
        this.state = state;
        return this;
    }

    public String toString() {
        return "LiveExamObjectiveScore(id=" + this.getId() + ", studentId=" + this.getStudentId() + ", examUserId=" + this.getExamUserId() + ", examId=" + this.getExamId() + ", score=" + this.getScore() + ", state=" + this.getState() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof LiveExamObjectiveScore)) {
            return false;
        } else {
            LiveExamObjectiveScore other = (LiveExamObjectiveScore)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$id = this.getId();
                Object other$id = other.getId();
                if (this$id == null) {
                    if (other$id != null) {
                        return false;
                    }
                } else if (!this$id.equals(other$id)) {
                    return false;
                }

                Object this$studentId = this.getStudentId();
                Object other$studentId = other.getStudentId();
                if (this$studentId == null) {
                    if (other$studentId != null) {
                        return false;
                    }
                } else if (!this$studentId.equals(other$studentId)) {
                    return false;
                }

                Object this$examUserId = this.getExamUserId();
                Object other$examUserId = other.getExamUserId();
                if (this$examUserId == null) {
                    if (other$examUserId != null) {
                        return false;
                    }
                } else if (!this$examUserId.equals(other$examUserId)) {
                    return false;
                }

                label62: {
                    Object this$examId = this.getExamId();
                    Object other$examId = other.getExamId();
                    if (this$examId == null) {
                        if (other$examId == null) {
                            break label62;
                        }
                    } else if (this$examId.equals(other$examId)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    Object this$score = this.getScore();
                    Object other$score = other.getScore();
                    if (this$score == null) {
                        if (other$score == null) {
                            break label55;
                        }
                    } else if (this$score.equals(other$score)) {
                        break label55;
                    }

                    return false;
                }

                Object this$state = this.getState();
                Object other$state = other.getState();
                if (this$state == null) {
                    if (other$state != null) {
                        return false;
                    }
                } else if (!this$state.equals(other$state)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof LiveExamObjectiveScore;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        int result1 = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $studentId = this.getStudentId();
        result1 = result * 59 + ($studentId == null ? 43 : $studentId.hashCode());
        Object $examUserId = this.getExamUserId();
        result1 = result * 59 + ($examUserId == null ? 43 : $examUserId.hashCode());
        Object $examId = this.getExamId();
        result1 = result * 59 + ($examId == null ? 43 : $examId.hashCode());
        Object $score = this.getScore();
        result1 = result * 59 + ($score == null ? 43 : $score.hashCode());
        Object $state = this.getState();
        result1 = result * 59 + ($state == null ? 43 : $state.hashCode());
        return result1;
    }
}
